class TalkRecordModel {
  int id;
  String fromId;
  String toId;
  String createtime;
  String text;

  TalkRecordModel(
      {this.id, this.fromId, this.toId, this.createtime, this.text});

  TalkRecordModel.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    fromId = json['from_id'];
    toId = json['to_id'];
    createtime = json['createtime'];
    text = json['text'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['from_id'] = this.fromId;
    data['to_id'] = this.toId;
    data['createtime'] = this.createtime;
    data['text'] = this.text;
    return data;
  }
}
